<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡</title>

    <style>
        div {
            margin: 100px auto;
            width: 100px;
            height: 100px;
            background-color: antiquewhite;
            transition: height .5s, width 1s ease 1s;
        }
        
        div:hover {
            margin: 100px auto;
            width: 500px;
            height: 500px;
            background-color: blueviolet;
        }
    </style>

</head>

<body>

    <div>


    </div>



</body>

</html>